package cn.edu.buu.news.entity;

import java.time.LocalDateTime;


public class Case {

    private Long caseId;

    private String title;

    private String content;

    private Long authorId;

    private String thumbnailUrl;

    private String toolUsed;

    private Integer viewsCount;

    private Integer likesCount;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private String status;

    // 无参构造方法
    public Case() {
    }

    // 全参构造方法
    public Case(Long caseId, String title, String content, Long authorId, String thumbnailUrl,
                String toolUsed, Integer viewsCount, Integer likesCount, LocalDateTime createdAt,
                LocalDateTime updatedAt, String status) {
        this.caseId = caseId;
        this.title = title;
        this.content = content;
        this.authorId = authorId;
        this.thumbnailUrl = thumbnailUrl;
        this.toolUsed = toolUsed;
        this.viewsCount = viewsCount;
        this.likesCount = likesCount;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.status = status;
    }

    // getter和setter方法
    public Long getCaseId() {
        return caseId;
    }

    public void setCaseId(Long caseId) {
        this.caseId = caseId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public String getThumbnailUrl() {
        return thumbnailUrl;
    }

    public void setThumbnailUrl(String thumbnailUrl) {
        this.thumbnailUrl = thumbnailUrl;
    }

    public String getToolUsed() {
        return toolUsed;
    }

    public void setToolUsed(String toolUsed) {
        this.toolUsed = toolUsed;
    }

    public Integer getViewsCount() {
        return viewsCount;
    }

    public void setViewsCount(Integer viewsCount) {
        this.viewsCount = viewsCount;
    }

    public Integer getLikesCount() {
        return likesCount;
    }

    public void setLikesCount(Integer likesCount) {
        this.likesCount = likesCount;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
